package net.mfjassociates.finance.domain.mfjfin_newdb;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.roo.addon.jpa.identifier.RooIdentifier;

@Embeddable
@RooIdentifier(dbManaged = false)
public final class TimeCardsPK {

	@Column(name = "TimeCardID", nullable = false)
    private Integer timeCardId;

	@Column(name = "EmployeeID", nullable = false)
    private Integer employeeId;

	@Column(name = "DateEntered", nullable = false)
    @Temporal(TemporalType.DATE)
    @DateTimeFormat(style = "M-")
    private Date dateEntered;

	public TimeCardsPK(Integer timeCardId, Integer employeeId, Date dateEntered) {
        super();
        this.timeCardId = timeCardId;
        this.employeeId = employeeId;
        this.dateEntered = dateEntered;
    }

	private TimeCardsPK() {
        super();
    }

	public Integer getTimeCardId() {
        return timeCardId;
    }

	public Integer getEmployeeId() {
        return employeeId;
    }

	public Date getDateEntered() {
        return dateEntered;
    }
}
